import { useHttp } from '@src/utils/http';
import { useQuery } from 'react-query';
import { TaskType } from '@src/types/task-type';

export const useTaskTypes = () => {
  const client = useHttp();

  return useQuery<TaskType[]>(['taskTypes'], () => client('taskTypes'));
};
